package jp.peach_boys.sandbox.slim3.controller;

import jp.peach_boys.sandbox.slim3.entity.Image;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class ImageController extends Controller {

    @Override
    protected Navigation run() throws Exception {
        Image image = Image.getImageByFilename(asString("imageName"));
        download(image.getFilename(), image.getImage());
        return null;
    }

}
